import { RouteRecordRaw } from 'vue-router'

export interface RouterCustomItem {
  meta?: {
    hiddenInMenu?: boolean
    sort?: number
    notAuth?: boolean
    icon?: string
    title?: string
    notToken?: boolean
  }
}

export type RouteItem = RouteRecordRaw & RouterCustomItem

export const defaultConfig = <T = any>(config: T) => config
